<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util,com.anhry.app.safety.util.OnlineUser,com.anhry.app.safety.util.OnlineUsers"/>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>退出系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
     <%
      //session.removeAttribute(Util.SESSION_ADMINUSER);
	  //session.removeAttribute("admin_listener");
	  //session.removeAttribute("currentUser");
	 // OnlineUsers.getInstance().removeUser(u.getId());
	  session.removeAttribute(Util.SESSION_ADMINUSER);
	  session.invalidate();
    %>
    <script type="text/javascript">
        top.location.href="<%=basePath%>/login/login.jsp";
    </script>
    <s:if test="%{tip!=null}">
    	<script>
    		alert('${tip}');
    	</script>
    </s:if>
  </body>
</html>
